package com.mbbmap.security.dao;

import org.owasp.encoder.Encode;

public class SecUserDao implements java.io.Serializable {
	private String logonid;
	private String userName;
	private String groupcode;
	private String groupname;
	private String pgroupname;
	private String agencyCode;
	private String countryCode;
	private String lastLoginDateTime;
	private String email;
	private String region;
	private String fullname;
	private String locked;
	private String dept;
	private int dormantDays;
	private int badPwdAttempts;
	private String enable;
	private String currentLogon;
	private String createBy;
	private String createDate;
	private String updateBy;
	private String lastPwdChange;
	private String lastUpdateDate;

	public void set(String slogonid,String sgroupcode,String sgroupname, String agencyCode) {
		this.logonid = slogonid;
		this.groupcode = sgroupcode;
		this.groupname = sgroupname;
		this.agencyCode = agencyCode;
	}

	public String getLogonId() {
		return this.logonid;
	}

	public String getGroupCode() {
		return this.groupcode;
	}

	public String getGroupName() {
		return Encode.forHtml(this.groupname);
	}

	public String getPGroupname() {
		return Encode.forHtml(pgroupname);
	}
	
	public String getAgencyCode() {
		return agencyCode;
	}
	
	public String getCountryCode() {
		return countryCode;
	}
	
	public String getEmail() {
		return Encode.forHtml(email);
	}
	
	public String getRegion() {
		return Encode.forHtml(region);
	}
	
	public String getFullName() {
		return Encode.forHtml(fullname);
	}
	
	public String getLocked() {
		return locked;
	}
	
	public String getDept() {
		return Encode.forHtml(dept);
	}
	
	public int getDormantDays() {
		return dormantDays;
	}
	
	///// set /////
	
	public void setAgencyCode(String agency) {
		this.agencyCode = agency;
	}
	
	public void setPGroupname(String pgroupname) {
		this.pgroupname = pgroupname;
	}
	
	public String getUserName() {
		return Encode.forHtml(userName);
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public void setCountryCode(String cCode) {
		this.countryCode = cCode;
	}

	public String getLastLoginDateTime() {
		return lastLoginDateTime;
	}

	public void setLastLoginDateTime(String lastLoginDateTime) {
		this.lastLoginDateTime = lastLoginDateTime;
	}
	
	public void setEmail(String v) {
		this.email = v;
	}
	
	public void setRegion(String v) {
		this.region = v;
	}
	
	public void setFullName(String v) {
		this.fullname = v;
	}
	
	public void setLocked(String v) {
		this.locked = v;
	}
	
	public void setDept(String v) {
		this.dept = v;
	}
	
	public void setDormantDays(int v) {
		this.dormantDays = v;
	}

	public int getBadPwdAttempts() {
		return badPwdAttempts;
	}

	public void setBadPwdAttempts(int badPwdAttempts) {
		this.badPwdAttempts = badPwdAttempts;
	}

	public String getEnable() {
		return enable;
	}

	public void setEnable(String enable) {
		this.enable = enable;
	}

	public String getCurrentLogon() {
		return currentLogon;
	}

	public void setCurrentLogon(String currentLogon) {
		this.currentLogon = currentLogon;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public String getLastPwdChange() {
		return lastPwdChange;
	}

	public void setLastPwdChange(String lastPwdChange) {
		this.lastPwdChange = lastPwdChange;
	}

	public String getLastUpdateDate() {
		return lastUpdateDate;
	}

	public void setLastUpdateDate(String lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}

	public void setLogonid(String logonid) {
		this.logonid = logonid;
	}

	public void setGroupcode(String groupcode) {
		this.groupcode = groupcode;
	}
}
